package com.atguigu.medicalsugar.service;

import com.atguigu.medicalsugar.bean.TradeGmvBean;
import com.atguigu.medicalsugar.bean.TradeHostpitalBean;
import com.atguigu.medicalsugar.bean.TradePatientAgeRangeBean;
import com.atguigu.medicalsugar.bean.TradePatientSexBean;
import com.atguigu.medicalsugar.mapper.TradeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author lzc
 * @Date 2023/5/29 14:06
 */
@Service
public class TradeServiceImpl implements TradeService{
    @Autowired
    TradeMapper tradeMapper;
    @Override
    public List<TradeGmvBean> gmv(Integer date) {
        return tradeMapper.gmv(date);
    }
    
    @Override
    public List<TradePatientSexBean> prescriptionAmountByPatientSex(Integer date) {
        return tradeMapper.prescriptionAmountByPatientSex(date);
    }
    
    @Override
    public List<TradePatientAgeRangeBean> amountByPatientAgeRange(Integer date) {
        return tradeMapper.amountByPatientAgeRange(date);
    }
    
    @Override
    public List<TradeHostpitalBean> statsByHostpital(Integer date) {
        return tradeMapper.statsByHostpital(date);
    }
    
    
}
